<!--
<script src="http://protozoa.googlecode.com/svn/trunk/js/functions.js"></script>
<script src="http://protozoa.googlecode.com/svn/trunk/js/dom.js"></script>
<script src="http://protozoa.googlecode.com/svn/trunk/js/dom.event.js"></script>
<script src="http://protozoa.googlecode.com/svn/trunk/js/utils.js"></script>
-->

<script src="/js/functions.js"></script>
<script src="/js/dom.js"></script>
<script src="/js/dom.event.js"></script>
<script src="/js/utils.js"></script>
<script src="/js/debug.js"></script>
<!---->

<style>body {font-size:11px} pre {font:11px mono;border-bottom:1px solid #ddd; padding-bottom:0.3em; margin:0.3em;}</style>

<script src='lex3.js'></script>
<script>

var l = {};
lex_merge(l, lex_re(parse_re('denis privet'), function(){ trace('[denis privet]') }));
lex_merge(l, lex_re(parse_re('denis'), function(){ trace('[denis]') }));
lex_merge(l, lex_re(/./));

var lexbuf = create_lexbuf(l);
lex(lexbuf, 'denis');
lex(lexbuf, ' pr');
lex(lexbuf, 'i');
lex(lexbuf, 'vet');
lex(lexbuf, '\x00');


trace(lexbuf);



/*
var text = load_file('cons.txt');
text = text.replace(/[ \t\r\n]+/g, ' ');


var open = function(str) {
	return { data: str, pos: 0 }
};

var read = function(s) {
	var result = s.data.substr(s.pos, 500);
	s.pos += result.length;
	return result;
};
*/

//var s = open(text);
//while(buf = read(s))
//	trace(buf);






</script>




















